| Fully Qualified Name: | Zend\View\Helper\Url |
| Extends: | AbstractHelper |
Helper for making easy links and getting urls that depend on the routes and router.
| Name | Description | Defined By |
|---|---|---|
| __invoke() | Generates a url given the name of a route. | Url |
| getView() | Get the view object | AbstractHelper |
| setRouteMatch() | Set route match returned by the router. | Url |
| setRouter() | Set the router to use for assembling. | Url |
| setView() | Set the View object | AbstractHelper |
Generates a url given the name of a route.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | Name |
| $params | array | Parameters |
| $options | array|\Traversable | Options |
| $reuseMatchedParams | bool | Whether |
Returns: string Url For the link href attribute
Get the view object
Returns: null|\Renderer
Set route match returned by the router.
| Parameter Name | Type | Description |
|---|---|---|
| $routeMatch | \LegacyRouteMatch|\RouteMatch |
Returns: \Url
Set the router to use for assembling.
| Parameter Name | Type | Description |
|---|---|---|
| $router | \LegacyRouteStackInterface|\RouteStackInterface |
Returns: \Url
Set the View object
| Parameter Name | Type | Description |
|---|---|---|
| $view | \Renderer |
Returns: \AbstractHelper